import { Button } from "antd"
import { useUserStore } from '@/store';
import { useTranslation } from 'react-i18next';

const Test1 = () => {
  const { user } = useUserStore()
  const [t, i18n] = useTranslation()
  return <div>
    <div>{user ? user.name : "登录后可查看"}</div>
    <Button>Primary Button</Button>
    国际化测试数据： {t('hello')}
    </div>
}

export default Test1